﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.CodeBox.BMS.Code.DataModels
{
    /// <summary>
    /// 用户登录记录
    /// </summary>
    public class LoginLogDataModel : BaseAutoIdentityDataModel
    {
        /// <summary>
        /// 登录输入的用户名
        /// </summary>
        public string LoginUserName { get; set; }

        /// <summary>
        /// 登录输入的密码
        /// </summary>
        /// <remarks>经过掩码存储，可分析出是否暴力破解；密码比对正确的话，不记录</remarks>
        public string LoginPassword { get; set; }

        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime LoginTime { get; set; }

        /// <summary>
        /// 登录IP
        /// </summary>
        public string IP { get; set; }

        /// <summary>
        /// 登录结果
        /// </summary>
        public LoginResult Result { get; set; }

        /// <summary>
        /// 登录类型
        /// </summary>
        public LoginType Type { get; set; }
    }
}
